package datatypes.film;


public class filmActor {

	private String actor_name;
	private String actor_id;
	private String film_roles;

	public filmActor(String actor_id, String actor_name, String film_roles) {
		this.actor_id = actor_id;
		this.actor_name = actor_name;
		this.film_roles = film_roles;

	}
 
	public String getActor_name() {
		return actor_name;
	}

	public void setActor_name(String actor_name) {
		this.actor_name = actor_name;
	}

	public String getActor_id() {
		return actor_id;
	}

	public void setActor_id(String actor_id) {
		this.actor_id = actor_id;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		if (actor_id != null && actor_id.length() > 0)
			sb.append("actor id: " + actor_id + "\n");
		if (actor_name != null && actor_name.length() > 0)
			sb.append("actor name: " + actor_name + "\n");
		if (film_roles != null && film_roles.length() > 0)
			sb.append("film roles: " + film_roles + "\n");

		return sb.toString();
	}

	public String getFilm_roles() {
		return film_roles;
	}

	public void setFilm_roles(String film_roles) {
		this.film_roles = film_roles;
	}

}
